package MicroSpring.beanFactory.impl;

public class BeanDefinition {
    private Class clazz;
    private String scope;
    private String shortClassName;
    private Boolean replaceable;
    private int level;
    private boolean isPredestroy;
    private boolean isAspect;


    public boolean isAspect() {
        return isAspect;
    }

    public void setAspect(boolean aspect) {
        isAspect = aspect;
    }

    public boolean isPredestroy() {
        return isPredestroy;
    }

    public void setPredestroy(boolean predestroy) {
        isPredestroy = predestroy;
    }

    public void setShortClassName(String shortClassName) {
        this.shortClassName = shortClassName;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public Boolean getReplaceable() {
        return replaceable;
    }

    public void setReplaceable(Boolean replaceable) {
        this.replaceable = replaceable;
    }

    public Class getClazz() {
        return clazz;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
        dealShortClassName();
    }

    private void dealShortClassName() {
        this.shortClassName=this.clazz.getSimpleName();
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getShortClassName(){
        return shortClassName;
    }
}
